import request from '@/utils/request'

// 查询成品库存储列表
export function listProductStorelist(query) {
  return request({
    url: '/mes/productStorelist/list',
    method: 'get',
    params: query
  })
}

// 查询成品库存储详细
export function getProductStorelist(id) {
  return request({
    url: '/mes/productStorelist/' + id,
    method: 'get'
  })
}

// 新增成品库存储
export function addProductStorelist(data) {
  return request({
    url: '/mes/productStorelist',
    method: 'post',
    data: data
  })
}

// 修改成品库存储
export function updateProductStorelist(data) {
  return request({
    url: '/mes/productStorelist',
    method: 'put',
    data: data
  })
}

// 删除成品库存储
export function delProductStorelist(id) {
  return request({
    url: '/mes/productStorelist/' + id,
    method: 'delete'
  })
}

// 导出成品库存储
export function exportProductStorelist(query) {
  return request({
    url: '/mes/productStorelist/export',
    method: 'get',
    params: query
  })
}

//取出物料
export function takeOutPS(id) {
  return request({
    url: '/mes/productStorelist/takeOut/' + id,
    method: 'delete'
  })
}
